package operator

import (
	"github.com/gin-gonic/gin"
	"go.uber.org/zap"
	"project/pkg/models"
)

func (h OHandler) DeleteOp(c *gin.Context) {
	resp := new(models.RespData)
	opId := c.Query("op_id")
	//删除
	err := h.M.OpDelete(opId)
	if err != nil {
		zap.L().Error("Op:UpdateInfo h.M.OpDelete err", zap.Error(err))
		resp.SendServerBusy(c)
		return
	}
	resp.SendSuccess(c)
}
